#vue.js todo app - basics
Explore tagged Tumblr posts
laravelvuejs · 4 years ago
Text
Vue.js Todo App - Basics - Part 1
Vue.js Todo App – Basics – Part 1
In this video, we build a Todo app using Vue.js. This will give us a practical approach to learning how to use Vue.js and its core concepts. We scaffold our app using Vue CLI and build out our todo functionality while borrowing some features from the official Vue todo MVC. Full playlist: https://www.youtube.com/playlist?list=PLEhEHUEU3x5q-xB1On4CsLPts0-rZ9oos GitHub Repo:…
Tumblr media
View On WordPress
0 notes
tak4hir0 · 5 years ago
Link
Vue Composition API によって Vue.js にも React Hooks のようなロジックの再利用性の高い開発体験がもたらされようとしています。 しかし、まだ「Composition API の良さをわかっていない」という方や「Composition API をうまく利用した書き方がわからない」という方も多いかと���います。 本記事では Composition API 時代の便利ライブラリ VueUse を用いた実装例や、 VueUse 自体の実装がどのようなものか紹介します。 Composition API の良さや雰囲気もキャッチアップしていただければ幸いです。 VueUse とは? VueUse は Anthony Fu さん1が中心に開発しているライブラリで、Composition API を用いた便利系関数を数多く集めたライブラリです。 例えば、ブラウザ上のマウスポインタの座標をリアクティブに取得する useMouse(), ブラウザ API の localStorage を使って状態を保持できる useLocalStorage(), 負荷対策のために連続する関数呼び出しを防ぐ useDebounceFn() 2などといった関数が提供されています。 公式サイト: https://vueuse.js.org/ GitHub: antfu/vueuse npm: @vueuse/core 検証環境の構築 GitHub リポジトリの Description に記載通り、Vue 2系・3系のどちらでも利用可能です: 🧰 Collection of Composition API utils for Vue 2 and 3 https://vueuse.js.org/ 今回は Vue CLI で立ち上げた Vue 2.6 系のプロジェクトに @vue/composition-api をプラグインとして追加した環境で検証します。 動作確認した環境 macOS Catalina Node.js 12.18.1 npm 6.14.5 Vue CLI v4.4.4 Chrome 83 Vue CLI のインストール Vue CLI をグローバルインストールしたくない方は、以下の手順の vue コマンド部分を npx @vue/cli に読み替えていただいても大丈夫です。 プロジェクトの作成 vue-2-vueuse-trial というプロジェクト名で環境を構築していきます: vue create vue-2-vueuse-trial 設定は以下のようにしました: Vue CLI v4.4.4 ? Please pick a preset: Manually select features ? Check the features needed for your project: Babel, TS, Linter ? Use class-style component syntax? No ? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? No ? Pick a linter / formatter config: Basic ? Pick additional lint features: Lint on save ? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files ? Save this as a preset for future projects? No プラグインと VueUse の導入 プロジェクトディレクトリが出来上がったら、@vue/composition-api と VueUse を npm install します: cd vue-2-vueuse-trial npm i @vueuse/core@vue2 @vue/composition-api src/main.ts に Vue.use(VueCompositionApi) を追加します3: src/main.ts import Vue from 'vue' +import VueCompositionApi from '@vue/composition-api' import App from './App.vue' +Vue.use(VueCompositionApi) Vue.config.productionTip = false npm run serve で開発ビルドを開始してください。 VueUse の関数を使ってみる useMouse() リアクティブにマウスポインタの座標が取得できる useMouse() を使ってみます: src/App.vue <template {{ x }}, {{ y }} </template <script lang="ts" import { defineComponent } from '@vue/composition-api' import { useMouse } from '@vueuse/core' export default defineComponent({ setup() { // tracks mouse position const { x, y } = useMouse() return { x, y } } }) </script これだけでマウスポインタの座標がリアクティブに反映されていることがわかるかと思います。 useMouse() の実装を確認すると useEventListener() という関数を使っていて、 useEventListener() はコンポーネントのマウント時(Composition API の onMounted() を利用)にイベントリスナーを追加していることがわかります: https://github.com/antfu/vueuse/blob/master/packages/core/useMouse/index.ts https://github.com/antfu/vueuse/blob/master/packages/core/useEventListener/index.ts VueUse ではこのような関数がより抽象的な関数を参照しているパターンの実装が所々に見られます。 Composition API を用いた良い実装の例として知っておくと良いかと思います。 useLocalStorage() ブラウザ API の localStorage を使って状態を保持できる useLocalStorage() を使ってみます。 まずは useLocalStorage() を使わず、 VueUse がなくても利用できる reactive() 4 を使ってみましょう: src/App.vue <template name: <input v-model="state.name" color: <input v-model="state.color" {{ state }} </template <script lang="ts" import { defineComponent, reactive } from '@vue/composition-api' export default defineComponent({ setup() { const state = reactive({ name: 'Apple', color: 'red', }) return { state } } }) </script name, color を変更すると、下に表示されている JSON 形式の state の表示も更新される画面が表示されます: 上記の実装では name を Banana, color を yellow のように変更してページをリロードすると、元の状態(name が Apple, color が red)に戻ります。 以下のように ブロックを変更し、reactive() の代わりに useLocalStorage() を利用するように変更してみます: import { defineComponent } from '@vue/composition-api' import { useLocalStorage } from '@vueuse/core' export default defineComponent({ setup() { // persist state in localStorage const state = useLocalStorage( 'my-storage', { name: 'Apple', color: 'red', }, ) return { state } } }) state が localStorage に保存されるようになったので、ページをリロードしても状態が保持されるようになりました。 サンプルアプリとしてよくある ToDo リストの状態管理に useLocalStorage() を使うようにすると、手軽にデータを保存できる ToDo リストにできて楽しいかもしれません。 公式サイトが Storybook でできている件 公式サイトが Storybook でできていて、各関数を即座に試せるリファレンスとなっています。 各関数のページ下部には関数の "Source" へのリンクがあり、ソースを���てどのような実装になっているか追っていくと Composition API を用いた良い実装の勉強となるかと思います。 所感 VueUse は多くの便利関数を提供しているので、今後お世話になる可能性が高いライブラリだと思いました。 まだ試せていない関数が多くあるので、使ってみたりコードを読んだりしてみようかと思います。
0 notes
rafi1228 · 5 years ago
Link
A complete course to master latest Laravel 5.4 web framework
What you’ll learn
Learn core concepts of Laravel PHP framework
Learn to build real world Laravel web apps
Learn real world web programming concepts
Requirements
Basic Knowledge of HTML, JavaScript and PHP is required to complete this course
Description
Don’t get stuck learning the old way! Get your hands on the latest Laravel technology with our
Project Course!
Technology is constantly becoming better, changing each second of every minute, so you need a course that can help you learn a technology fast. A simple method that will help you become not only proficient in the fundamentals, but also help you learn how to practically apply these fundamentals in the real world. Well, that’s exactly what we are offering with our Laravel Project Course.
Laravel is THE most popular PHP framework that is currently used on the market. Owing to its simplicity, ease of use, simplified syntax and loads of other features, PHP continues to dominate the market for PHP frameworks. So, if you want to build some pretty neat and dynamic apps and websites, well then Laravel is probably the framework you are looking for.
Our Projects in Laravel course can help you out there. Designed with experts from all around the industry, this course has been created to help bridge the gap between theory and practical application. You will not only learn the fundamentals of Laravel in this course, but you will also learn how to actually put them into application.
That’s not all! In addition to Laravel, our course also includes teaming up Laravel with some other state-of-the-art technologies such as PostgreSQL, Laravel Mix, Bootstrap, OctoberCMS and so much more. So, you will not only be learning Laravel, but also other amazing technologies that work flawlessly with Laravel to build some epic websites and apps.
So, what do you get when you sign up for this course? Fundamentals, a detailed introduction of Laravel, how to install and configure Laravel, how to integrate Laravel with other technologies, and 10 amazing projects that are royalty-free!
Here are the 10 different projects that you will learn in this course:
Basic Website – In this project, you will learn how to install Laravel, set up the controller, views, migrations, compile your assets with Laravel Mix and build a basic website.
Todo List – A simple Todo list will help you understand how to integrate CRUD (create, read, update, delete) functionality in Laravel.
Business Listing – In this application, you will learn how to create authentication, add business listings and delete them.
Photo Gallery – Here you will learn how to create albums and update photos into that album.
REST API – In this you will learn how accept requests to certain routes, update the database, and using items with a name and a body. We will also build a front-end using JavaScript so that we can make requests to the API.
OctoberCMS Website – A website built with the October Content Management Systems that is built on Laravel.
MyTweetz Twitter App – An app integrated with the Twitter API, which will allow you to not only compose tweets, but also publish them.
MarxManager Bookmark Manager – A bookmark manager using the PostgreSQL as our database.
Vue.js Contact Manager – In this project, you will learn how to build a front-end using Vue.js as a component to work with our contacts in the backend.
Backpack Website With Admin Area – This project will familiarize you with Backpack, a collection of different packages to create different features in You Admin Panel.
So, let’s get this party started! Enroll Now and start building some amazing Laravel projects.
Who this course is for:
Anyone who wants to learn professional Laravel development will find this course extremely useful
Created by Eduonix Learning Solutions, Eduonix-Tech ., Samy Eduonix Last updated 12/2018 English English [Auto-generated]
Size: 2.11 GB
   Download Now
https://ift.tt/2oD5cwV.
The post Projects in Laravel: Learn Laravel Building 10 Projects appeared first on Free Course Lab.
0 notes
sixtus01 · 6 years ago
Text
2019 build a Todo app with vue js
2019 build a Todo app with vue js
This course we will build a Todo app with vue.js
It’s simple and also strong.
But before you learn it , you need some basic kownledge about vue
Like v-model, v-bind, v-on:clik and so on.
And also you should have some javascript basic kownledge, so you can learn this course very easy.
I am recommend you follow the teacher while learning.
Who this course is for:
Anyone who love frontend
Ude…
View On WordPress
0 notes
rafi1228 · 6 years ago
Link
A complete course to master latest Laravel 5.4 web framework
What you’ll learn
Learn core concepts of Laravel PHP framework
Learn to build real world Laravel web apps
Learn real world web programming concepts
Requirements
Basic Knowledge of HTML, JavaScript and PHP is required to complete this course
Description
Don’t get stuck learning the old way! Get your hands on the latest Laravel technology with our
Project Course!
Technology is constantly becoming better, changing each second of every minute, so you need a course that can help you learn a technology fast. A simple method that will help you become not only proficient in the fundamentals, but also help you learn how to practically apply these fundamentals in the real world. Well, that’s exactly what we are offering with our Laravel Project Course.
Laravel is THE most popular PHP framework that is currently used on the market. Owing to its simplicity, ease of use, simplified syntax and loads of other features, PHP continues to dominate the market for PHP frameworks. So, if you want to build some pretty neat and dynamic apps and websites, well then Laravel is probably the framework you are looking for.
Our Projects in Laravel course can help you out there. Designed with experts from all around the industry, this course has been created to help bridge the gap between theory and practical application. You will not only learn the fundamentals of Laravel in this course, but you will also learn how to actually put them into application.
That’s not all! In addition to Laravel, our course also includes teaming up Laravel with some other state-of-the-art technologies such as PostgreSQL, Laravel Mix, Bootstrap, OctoberCMS and so much more. So, you will not only be learning Laravel, but also other amazing technologies that work flawlessly with Laravel to build some epic websites and apps.
So, what do you get when you sign up for this course? Fundamentals, a detailed introduction of Laravel, how to install and configure Laravel, how to integrate Laravel with other technologies, and 10 amazing projects that are royalty-free!
Here are the 10 different projects that you will learn in this course:
Basic Website – In this project, you will learn how to install Laravel, set up the controller, views, migrations, compile your assets with Laravel Mix and build a basic website.
Todo List – A simple Todo list will help you understand how to integrate CRUD (create, read, update, delete) functionality in Laravel.
Business Listing – In this application, you will learn how to create authentication, add business listings and delete them.
Photo Gallery – Here you will learn how to create albums and update photos into that album.
REST API – In this you will learn how accept requests to certain routes, update the database, and using items with a name and a body. We will also build a front-end using JavaScript so that we can make requests to the API.
OctoberCMS Website – A website built with the October Content Management Systems that is built on Laravel.
MyTweetz Twitter App – An app integrated with the Twitter API, which will allow you to not only compose tweets, but also publish them.
MarxManager Bookmark Manager – A bookmark manager using the PostgreSQL as our database.
Vue.js Contact Manager – In this project, you will learn how to build a front-end using Vue.js as a component to work with our contacts in the backend.
Backpack Website With Admin Area – This project will familiarize you with Backpack, a collection of different packages to create different features in You Admin Panel.
So, let’s get this party started! Enroll Now and start building some amazing Laravel projects.
Who this course is for:
Anyone who wants to learn professional Laravel development will find this course extremely useful
Created by Eduonix Learning Solutions, Eduonix-Tech ., Samy Eduonix Last updated 12/2018 English English [Auto-generated]
Size: 2.11 GB
   Download Now
https://ift.tt/2oD5cwV.
The post Projects in Laravel: Learn Laravel Building 10 Projects appeared first on Free Course Lab.
0 notes